<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>列表</title>
  <style>
    .list{
      width:1000px;
      margin: 10px auto;
      display: flex;
      flex-wrap: wrap;
      list-style: none;
    }
    .item{
      width:22%;
      padding:10px;
      box-sizing: border-box;
      flex-shrink: 0;
      border-radius: 10px;
      margin:10px;
      box-shadow: 0 0 2px 2px #123456;
    }
    .img{
      width:100%;
      height:250px;
    }
    .title{
      text-align: center;
      color:#f50;
    }
    .text{
      text-align: center;
      margin-top:5px;
      color:#123456;
    }
  </style>
</head>
<body>
    <%- include('head',{title:"登录"})%>
  <div class="page">
    <h2>列表 - list - list </h2>
    <ul class="list">
     <%  if(result.length>0){  %>
        <% result.forEach((item,index)=>{ %>
          <li class="item">
              <a href="/detail?id=<%-item.id%>">
                  <img src="<%- item.images.large.replace(/img7/,'img3') %>" class="img" alt="">
                  <h2 class="title"> <%- item.title %> </h2>
                  <p class="text">年份 <%- item.year %> </p>
              </a>
          </li>

       <% })  %> 
     <%  }else{  %>
          <li>暂无数据...</li>
    <%  }  %> 
       
    </ul>
  </div>
  <%- include foot  %>

</body>
</html>